#!/usr/bin/env sh

export LM_LICENSE_FILE="$PWD/sdk/cw/license.dat"
export NITROSDK_ROOT="$PWD/sdk/NitroSDK"
export NITROSYSTEM_ROOT="$PWD/sdk/NitroSystem"
export NITROWIFI_ROOT="$PWD/sdk/NitroWiFi"
export NITRODWC_ROOT="$PWD/sdk/NitroDWC"
export NITROVCT_ROOT="$PWD/sdk/libVCT"
export NITROLIBVCT_ROOT="$PWD/sdk/libVCT"
export CWFOLDER_NITRO="$PWD/sdk/cw"
export PROJECT_ROOT="$PWD"
export OLD_PATH="$PATH"
export PATH_WITH_TOOLS="$PWD/tools/make:$PWD/tools/ruby:$PWD/tools/nnsarc:$PWD/tools/fixrom:$PATH"
export PATH="$PATH_WITH_TOOLS"

if [ "$OS" != 'Windows_NT' ] && $(grep -q Microsoft /proc/version 2>/dev/null); then
	export LM_LICENSE_FILE="$(wslpath -m "$CWFOLDER_NITRO/license.dat")"
else
	export LM_LICENSE_FILE="$CWFOLDER_NITRO/license.dat"
fi

export IS_NITRO_DIR="$PWD/sdk/isdbg"

export WINEDLLOVERRIDES="winemenubuilder.exe=d;mscoree,mshtml="
export WINEARCH=win32
export WINEPREFIX="$PWD/.wineprefix"

